using Newtonsoft.Json;
using ReportDesignerServer.Common;
using SqlSugar;

namespace ReportDesignerServer.DataModel
{

    /// <summary>
    /// 部门实体
    /// </summary>  
    [SugarTable("sys_dept")]
    public class Dept
    {
        [JsonConverter(typeof(LongToStringConverter))]
        [SugarColumn(IsPrimaryKey = true)]
        public long id { get; set; }

        /// <summary>
        /// 部门名称
        /// </summary>
        public string name { get; set; }
       
        /// <summary>
        /// 部门编码
        /// </summary>
        public string code { get; set; }
       
     
        /// <summary>
        /// 父节点id
        /// </summary>
        public long parentId { get; set; }
       
        
        /// <summary>
        /// 显示顺序
        /// </summary>
        public int? sort { get; set; }


        /// <summary>
        /// 状态(1-正常 0-禁用)
        /// </summary>
        public int? status { get; set; }

         
    }
}